/*******************************************************************************
*  file    : dsp_test.hpp
*  created : 06.04.2012
*  author  : Slyshyk Oleksiy (alex312@meta.ua)
*******************************************************************************/

#ifndef DSP_TEST_HPP
#define DSP_TEST_HPP

#include <vector>
#include <complex>
#include <boost/circular_buffer.hpp>

std::vector<double> meandr_fourier(std::vector<double> &t, int N);

std::vector<std::complex<double> > dft(const std::vector<double> & data);
std::vector<std::complex<double> > dft(const std::vector<std::complex<double> > & data);

void fft_base(std::vector<std::complex<double> > &a, bool invert = false);

std::complex<double> mod_gertzel(boost::circular_buffer<std::complex<double> > & buf,
                                 std::complex<double> sn,
                                 int N,
                                 int k);


#endif // DSP_TEST_HPP
